
package com.wwy.monitor.service;

import com.wwy.monitor.model.tddl.dto.MonitorReceiverDTO;
import com.wwy.monitor.model.tddl.query.MonitorReceiverQuery;

import java.util.List;

/**
 * @author tianquan.ld
 * @version V1.0
 * <p>Description: çæ§ip service</p>
 * @date 2019-10-30 21:17
 */
public interface MonitorReceiverService {
    /**
     * æ°å»º
     *
     * @param entity
     * @return
     */
    boolean insert(MonitorReceiverDTO entity);

    /**
     * 批量添加
     *
     * @param list æ·»å æ°æ®
     * @return æ·»å æ¡æ°
     */
    int batchInsert(List<MonitorReceiverDTO> list);

    /**
     * å é¤
     *
     * @param id
     * @return
     */
    boolean deleteById(Long id);

    /**
     * æ ¹æ®éç½®è¯¦æidé»è¾å é¤
     *
     * @param detailId éç½®è¯¦æid
     * @return é»è¾å é¤æ¡æ°
     */
    int deleteByDetailId(Long detailId);

    /**
     * æ´æ°
     *
     * @param entity
     * @return
     */
    boolean updateById(MonitorReceiverDTO entity);

    /**
     * æ¥è¯¢
     *
     * @param query
     * @return
     */
    List<MonitorReceiverDTO> selectByQuery(MonitorReceiverQuery query);

    /**
     * æ ¹æ®idæ¥è¯¢
     *
     * @param id
     * @return
     */
    MonitorReceiverDTO selectById(Long id);

    /**
     * å¨é¨æ°é
     *
     * @return
     */
    Integer count(MonitorReceiverQuery query);
}